from fastapi import APIRouter
from src.Api.web import WebRoutes
from src.Api.api import ApiRoutes
    
# 创建路由并注册
router = APIRouter()

def setup_routes(app):
    # print("setup_routes ============================")
    web_routes = WebRoutes(app, router)
    api_routes = ApiRoutes(app, router)
    
    web_routes.setup()
    api_routes.setup()
